import java.util.Scanner;

public class Test {
    public static void main(String[] args) {
        int x = 25;
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入密码");
        for(int i = 3;i > 0;i--){
            int num = sc.nextInt();
            if(num == x){
                System.out.println("登录成功");
                break;
            }
            else{
                System.out.println("密码错误");
                System.out.println("你还有"+(i-1)+"次机会");
            }
        }
        sc.close();
    }
}
